package com.sgb.zhaocai.entity;

import android.text.TextUtils;

import com.swgk.core.util.DateUtils;

import java.util.List;

/**
 * Time:2021/8/16
 * AUTHOR:F_Q
 * Description: 招标大厅-需求预告
 */
public class DemandForecastListEntity {


    private String id;
    private String projectName;
    private String moduleType;
    private String addrDetail;
    private String projectAddressName;
    private String createTime;
    private String applyCompanyName;
    private List<List<GoodsListDTO>> goodsList;
    private List<GoodsHeaderDTO> goodsHeader;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getModuleType() {
        return moduleType;
    }

    public void setModuleType(String moduleType) {
        this.moduleType = moduleType;
    }

    public String getAddrDetail() {
        return addrDetail;
    }

    public void setAddrDetail(String addrDetail) {
        this.addrDetail = addrDetail;
    }

    public String getProjectAddressName() {
        return projectAddressName;
    }

    public void setProjectAddressName(String projectAddressName) {
        this.projectAddressName = projectAddressName;
    }

    public String getCreateTime() {
        if (!TextUtils.isEmpty(createTime)){
            String timestamp = DateUtils.timestampToDate(Long.parseLong(createTime));
            return timestamp;
        }else {
            return "";
        }
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getApplyCompanyName() {
        return applyCompanyName;
    }

    public void setApplyCompanyName(String applyCompanyName) {
        this.applyCompanyName = applyCompanyName;
    }

    public List<List<GoodsListDTO>> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<List<GoodsListDTO>> goodsList) {
        this.goodsList = goodsList;
    }

    public List<GoodsHeaderDTO> getGoodsHeader() {
        return goodsHeader;
    }

    public void setGoodsHeader(List<GoodsHeaderDTO> goodsHeader) {
        this.goodsHeader = goodsHeader;
    }

}
